<!--
 * @Description: 
 * @Version: 0.1
 * @Autor: Civet
 * @Date: 2019-08-02 16:04:58
 * @LastEditors: Please set LastEditors
 * @LastEditTime: 2019-10-12 11:34:41
 -->
<template>
  <headerTopView :userN="userN"
                 @outSide="outSide"></headerTopView>
</template>

<script>
import headerTopView from './headerTopView';
import { localUitl } from '@/utils/localUitl'
import apiHome from '@/httpUtils/apiHome';

export default {

  components: {
    headerTopView
    // name
  },
  name: "headerTop",
  props: {
    // msg: String //  [name: typeof]
  },
  filters: {},
  computed: {},
  watch: {},
  data () {
    return {
      userN: {}
    }
  },
  created () {
    this.getUserN();
  },
  mounted () {

  },
  methods: {
    outSide (command) {
      localUitl.removeSessionItem("userData");
      this.$router.push('/');
    },
    getUserN () {
      // let obj = {
      //   access_token: localUitl.getToken()
      // };
      // apiHome.getUserN(obj).then(res => {
      //   if (res.status == 200) {
      //     this.userN = res.data;
      //   }
      // })
    }
  },
  destroyed () {

  }
}
</script>

<style scoped lang="less">
</style>
